/**
 * Created by Administrator on 2017/10/31.
 */
import _ from 'lodash';
import printMe from './print';

function component() {
    var element = document.createElement("div");
    var btn = document.createElement("button");

    element.innerHTML = _.join(["Hello","webpack"],"");

    btn.innerHTML = "Click Me!";
    btn.onclick = printMe;

    element.appendChild(btn);

    return element;
}

document.body.appendChild(component());